package com.rainng.coursesystem.repository;

import com.rainng.coursesystem.model.CourseNotificationItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseNotificationRepository extends JpaRepository<CourseNotificationItem, Long> {
    List<CourseNotificationItem> findByCourseIdOrderByCreatedAtDesc(Long courseId);
}